/**
 * 
 */
	function loaddata(){
		var allFlag = $("#allFlag").val();
		var pno = $("#pagenum").val();
		var from_date=$("#from_date").val();
		var to_date=$("#to_date").val();
		var auditType=$("#auditType").val();
		var ope_id=$("#ope_id").val();
		var factory = $("#sfactory").val();
		var emp_id = $("#sempId").val();
		var emp_name= $("#sname").val();
		var url = pms_url + "cell/performance/listAudit";
		var params = {factory:factory,emp_id:emp_id,emp_name:emp_name,from_date:from_date,to_date:to_date,auditType:auditType,ope_id:ope_id,pno:pno,allFlag:allFlag};
		var obj = load(url,params);//发送请求去服务端请求数据	
		var ary = obj.performanceDay;
		$("#auditReportlist").find("tbody").html("");
		$.each(ary, function(index, p) {
			
			if(p.category=="稽核管理"){
				
				var tr ="<tr role='row'>"+
				/*"<td>"+p.factory+"</td>"+*/
				"<td>"+p.fab_date+"</td>"+
				"<td>"+p.type+"</td>"+
				"<td>"+p.ope_name+"</td>"+
				"<td>"+p.emp_id+"</td>"+
				"<td>"+p.emp_name+"</td>"+
				"<td>"+p.group_leader+"</td>"+
				"<td>"+p.reason+"</td>"+
				"</tr>";
				$("#auditReportlist").find("tbody").append(tr);
			}

	 });
	}
	
	
	$(function () {
		loaddata();
	//	TableDatatablesEditable.init();
		});
	
	//查询
	$('#btnSearch').on('click', function () {
		loaddata();
		
	});
	
	//重置
	$("#btnReset").on('click', function () {
		$("#searchform input").val("");
		$("#searchform select").val("");
	});	
	
	
//	var TableDatatablesEditable=
//		function(){
//		var e=function(){
//			var a=$("#auditReportlist"),
//			l=a.dataTable({lengthMenu:[[10,15,20,-1],[10,15,20,"All"]],pageLength:10,language:{lengthMenu:" _MENU_ records"},columnDefs:[{orderable:!0,targets:[0]},{searchable:!0,targets:[0]}],order:[[0,"asc"]]});
//			};
//								
//			return{init:function(){e()}}}();